package org.jeecg.modules.zcgl.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.zcgl.entity.RepairInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.zcgl.vo.RepairInfoVo;
import org.jeecg.modules.zcgl.vo.statistical.MaintenanceStatisticalVo;

import java.util.List;

/**
 * @Description: 维修信息
 * @Author: jeecg-boot
 * @Date:   2020-06-19
 * @Version: V1.0
 */
public interface IRepairInfoService extends IService<RepairInfo> {

    /**
     * 租户报修或者修改报修信息
     * @param vo
     * @return
     */
    boolean wxSaveOrUpdateByVo(RepairInfoVo vo);

    RepairInfoVo getVoById(String id);

    /**
     * 维修反馈
     * @param vo
     * @return
     */
    boolean feedback(RepairInfoVo vo);

    boolean saveByVo(RepairInfoVo vo);

    boolean updateByVo(RepairInfoVo vo);

    IPage<MaintenanceStatisticalVo> queryMaintenanceStatisticalPageList(Page<MaintenanceStatisticalVo> page, QueryWrapper<MaintenanceStatisticalVo> queryWrapper);

    List<MaintenanceStatisticalVo> queryMaintenanceStatisticalList(QueryWrapper<MaintenanceStatisticalVo> queryWrapper);
}
